package com.ruoyi.abuwx.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.abuwx.mapper.AbuwxPersonageStatisticsMapper;
import com.ruoyi.abuwx.domain.AbuwxPersonageStatistics;
import com.ruoyi.abuwx.service.IAbuwxPersonageStatisticsService;

/**
 * 个人统计Service业务层处理
 * 
 * @author tang
 * @date 2022-07-02
 */
@Service
public class AbuwxPersonageStatisticsServiceImpl implements IAbuwxPersonageStatisticsService 
{
    @Autowired
    private AbuwxPersonageStatisticsMapper abuwxPersonageStatisticsMapper;

    /**
     * 查询个人统计
     * 
     * @param id 个人统计主键
     * @return 个人统计
     */
    @Override
    public AbuwxPersonageStatistics selectAbuwxPersonageStatisticsById(Long id)
    {
        return abuwxPersonageStatisticsMapper.selectAbuwxPersonageStatisticsById(id);
    }

    /**
     * 查询个人统计列表
     * 
     * @param abuwxPersonageStatistics 个人统计
     * @return 个人统计
     */
    @Override
    public List<AbuwxPersonageStatistics> selectAbuwxPersonageStatisticsList(AbuwxPersonageStatistics abuwxPersonageStatistics)
    {
        return abuwxPersonageStatisticsMapper.selectAbuwxPersonageStatisticsList(abuwxPersonageStatistics);
    }

    /**
     * 新增个人统计
     * 
     * @param abuwxPersonageStatistics 个人统计
     * @return 结果
     */
    @Override
    public int insertAbuwxPersonageStatistics(AbuwxPersonageStatistics abuwxPersonageStatistics)
    {
        abuwxPersonageStatistics.setCreateTime(DateUtils.getNowDate());
        return abuwxPersonageStatisticsMapper.insertAbuwxPersonageStatistics(abuwxPersonageStatistics);
    }

    /**
     * 修改个人统计
     * 
     * @param abuwxPersonageStatistics 个人统计
     * @return 结果
     */
    @Override
    public int updateAbuwxPersonageStatistics(AbuwxPersonageStatistics abuwxPersonageStatistics)
    {
        abuwxPersonageStatistics.setUpdateTime(DateUtils.getNowDate());
        return abuwxPersonageStatisticsMapper.updateAbuwxPersonageStatistics(abuwxPersonageStatistics);
    }

    /**
     * 批量删除个人统计
     * 
     * @param ids 需要删除的个人统计主键
     * @return 结果
     */
    @Override
    public int deleteAbuwxPersonageStatisticsByIds(Long[] ids)
    {
        return abuwxPersonageStatisticsMapper.deleteAbuwxPersonageStatisticsByIds(ids);
    }

    /**
     * 删除个人统计信息
     * 
     * @param id 个人统计主键
     * @return 结果
     */
    @Override
    public int deleteAbuwxPersonageStatisticsById(Long id)
    {
        return abuwxPersonageStatisticsMapper.deleteAbuwxPersonageStatisticsById(id);
    }
}
